<template>
  <div>
    <van-nav-bar
        :title="title"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
    />
  </div>
</template>

<script>
export default {
  name: "FYNavBar",
  props:{
    title:{
      type: String,
      default: 'Index'
    }
  },
  data(){
    return{

    }
  },
  methods:{
    onClickLeft() {
      this.$router.back()
    },
  },
}
</script>

<style scoped>
.van-nav-bar {
  background-color: #2e2f3b;
}
.van-nav-bar >>> .van-nav-bar__title{
  color: white;
}
</style>